package com.danjinwulian.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.danjinwulian.common.annotation.Excel;
import com.danjinwulian.common.core.domain.BaseEntity;

/**
 * 酒店公寓对象 iot_hotel
 * 
 * @author ken.h
 * @date 2022-08-23
 */
public class IotHotel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公寓id */
    private Long hotelId;

    /** 公寓名称 */
    @Excel(name = "公寓名称")
    private String hotelName;

    /** 公寓地址 */
    @Excel(name = "公寓地址")
    private String hotelAddress;

    /** 店长账号 */
    @Excel(name = "店长账号")
    private String hotelPhone;

    /** 采购类型（1购买 2租用） */
    @Excel(name = "采购类型", readConverterExp = "1=购买,2=租用")
    private String purchaseType;

    /** 采购到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDeadline;

    /** 状态（0禁用 1启用） */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    /** 换取手机号的code */
    private String phoneNumberCode;

    /** 换取openid的code */
    private String loginCode;

    public void setHotelId(Long hotelId) 
    {
        this.hotelId = hotelId;
    }

    public Long getHotelId() 
    {
        return hotelId;
    }
    public void setHotelName(String hotelName) 
    {
        this.hotelName = hotelName;
    }

    public String getHotelName() 
    {
        return hotelName;
    }
    public void setHotelAddress(String hotelAddress) 
    {
        this.hotelAddress = hotelAddress;
    }

    public String getHotelAddress() 
    {
        return hotelAddress;
    }
    public void setHotelPhone(String hotelPhone) 
    {
        this.hotelPhone = hotelPhone;
    }

    public String getHotelPhone() 
    {
        return hotelPhone;
    }
    public void setPurchaseType(String purchaseType) 
    {
        this.purchaseType = purchaseType;
    }

    public String getPurchaseType() 
    {
        return purchaseType;
    }
    public void setPurchaseDeadline(Date purchaseDeadline) 
    {
        this.purchaseDeadline = purchaseDeadline;
    }

    public Date getPurchaseDeadline() 
    {
        return purchaseDeadline;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getPhoneNumberCode() {
        return phoneNumberCode;
    }

    public void setPhoneNumberCode(String phoneNumberCode) {
        this.phoneNumberCode = phoneNumberCode;
    }

    public String getLoginCode() {
        return loginCode;
    }

    public void setLoginCode(String loginCode) {
        this.loginCode = loginCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("hotelId", getHotelId())
            .append("hotelName", getHotelName())
            .append("hotelAddress", getHotelAddress())
            .append("hotelPhone", getHotelPhone())
            .append("purchaseType", getPurchaseType())
            .append("purchaseDeadline", getPurchaseDeadline())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
